<?php /* Smarty version Smarty-3.0.7, created on 2012-02-12 17:51:13
         compiled from "components/filter/filter.tpl" */ ?>
<?php /*%%SmartyHeaderCode:13257266034f37ee01d1a760-43369864%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e0af1fdfbf4276a83c580d96f3b84d0327c5cc5a' => 
    array (
      0 => 'components/filter/filter.tpl',
      1 => 1329065412,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '13257266034f37ee01d1a760-43369864',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<div id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_wrapper" class="filterwrapper">
	<div id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_detail" class="">
	<div id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_title_det" class="filtertitle"><?php echo $_smarty_tpl->getVariable('mainlist')->value['comptitle'];?>
</div>
<?php if (($_smarty_tpl->getVariable('list')->value['acc'])){?>
		<div id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_accountselectdiv" class="searchform">
			<table>
				<tr>
					<td width="835px" class="textcenter">
						<input type="button" id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_accselect_payment" value="<?php echo $_smarty_tpl->getVariable('mainlist')->value['lblpaymentaccount'];?>
" onclick="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_filter.selectAcc('payment');<?php echo $_smarty_tpl->getVariable('mainlist')->value['jsOnclickPayment'];?>
;" >
						<input type="button" id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_accselect_partner" value="<?php echo $_smarty_tpl->getVariable('mainlist')->value['lblpartneraccount'];?>
" onclick="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_filter.selectAcc('partner');<?php echo $_smarty_tpl->getVariable('mainlist')->value['jsOnclickPartner'];?>
;" >
					</td>
				</tr>
			</table>
		</div>
		<div id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_paymentwrapper" style="padding:3px 3px 12px;" class="filtertableborder">
			<table>
				<tr>
					<td width="400px" style="text-align:right;">
						<label><?php echo $_smarty_tpl->getVariable('mainlist')->value['lblsearchaccount'];?>
</label>
					</td>
					<td width="400px">
						<input type="text" id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_filteracctext" value="" onkeyup="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_filter.searchAccountText();"/><br />
					</td>
				</tr>
				<tr>
					<td><?php echo $_smarty_tpl->getVariable('mainlist')->value['paymcb1'];?>
</td>
					<td><?php echo $_smarty_tpl->getVariable('mainlist')->value['paymcb2'];?>
</td>
				</tr>
			</table>
			<div id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_collectiondiv" class="filtertable">
				<?php echo $_smarty_tpl->getVariable('filterpayment')->value;?>

			</div>
			<br />
			<div class="filterbuttondiv">
				<?php  $_smarty_tpl->tpl_vars['btn'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('btns')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['btn']->key => $_smarty_tpl->tpl_vars['btn']->value){
?>
					<input type="button" id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_btn" onclick="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_filter.btnClick(this, '<?php echo $_smarty_tpl->tpl_vars['btn']->value['evnt'];?>
', 'rowid', '<?php echo $_smarty_tpl->tpl_vars['btn']->value['sender'];?>
');" value="<?php echo $_smarty_tpl->tpl_vars['btn']->value['title'];?>
" /> 
				<?php }} ?>
				<button class="detailbutton" onclick="showDetail(false, '<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
');">
					<img src="images/arrow_up.png" width="25px" />
				</button>
			</div>
		</div>
<?php }?>
		<div id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_partnerwrapper">
			<div id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_collectiondiv" class="filtertable">
				<?php echo $_smarty_tpl->getVariable('collopen')->value;?>

				<?php echo $_smarty_tpl->getVariable('collectiontable')->value;?>

				<table>
					<tr>
						<td width="800px" class="textcenter">
							<input type="checkbox" id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_cb_usecollection" onclick="useCollection('<?php echo $_smarty_tpl->getVariable('list')->value['compname'];?>
', this);" ><?php echo $_smarty_tpl->getVariable('mainlist')->value['lblusecollection'];?>
<br/>
						</td>
					</tr>
				</table>
				<?php echo $_smarty_tpl->getVariable('collclose')->value;?>

			</div>
		
			<div id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_searchformdiv" class="searchform">
				<?php echo $_smarty_tpl->getVariable('pprelopen')->value;?>

				<?php echo $_smarty_tpl->getVariable('filterpartnerrel')->value;?>

				<div id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_partnerrel_div_cancel" class="hide" style="text-decoration:blink;">
					Working ...
				</div>
				&nbsp;<br />
				<?php echo $_smarty_tpl->getVariable('selectiontable1')->value;?>

				<?php echo $_smarty_tpl->getVariable('pprelclose')->value;?>

			</div>
			<div id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_searchformdiv" class="searchform">
					<?php echo $_smarty_tpl->getVariable('filterselection1')->value;?>

			</div>
			<div id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_selection2div" class="filtertable">
				<?php echo $_smarty_tpl->getVariable('sel2open')->value;?>

				<?php echo $_smarty_tpl->getVariable('selectiontable2')->value;?>

				<?php echo $_smarty_tpl->getVariable('imposition')->value;?>

				<?php echo $_smarty_tpl->getVariable('sel2close')->value;?>

			</div>
			<div id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_searchdiv" class="filtertable">
				<?php echo $_smarty_tpl->getVariable('searchtable')->value;?>

			</div>
			<br />
			<div class="filterbuttondiv">
				<?php  $_smarty_tpl->tpl_vars['btn'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('btns')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['btn']->key => $_smarty_tpl->tpl_vars['btn']->value){
?>
					<input type="button" id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_btn" onclick="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_filter.btnClick(this, '<?php echo $_smarty_tpl->tpl_vars['btn']->value['evnt'];?>
', 'rowid', '<?php echo $_smarty_tpl->tpl_vars['btn']->value['sender'];?>
');" value="<?php echo $_smarty_tpl->tpl_vars['btn']->value['title'];?>
" /> 
				<?php }} ?>
				<button class="detailbutton" onclick="showDetail(false, '<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
');">
					<img src="images/arrow_up.png" width="25px" />
				</button>
			</div>
		</div>
	</div>
	<div id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_status" class="hide filterwrapperdetail">
		<div id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_title_stat" class="filtertitle"><?php echo $_smarty_tpl->getVariable('mainlist')->value['comptitle'];?>
</div>
		<div id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_status_txt"></div>
		<button class="detailbutton" onclick="showDetail(true, '<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
');">
			<img src="images/arrow_down.png" width="25px" />
		</button>
	</div>
</div>
<script language="javascript">
	//fillStatus("<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
");
	var <?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_filter = new Filter("<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_filter");
</script>
<?php if (($_smarty_tpl->getVariable('mainlist')->value['needreset'])){?>
	<script language="javascript">
		//alert(need);
		<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_filter.setNeedReset(true);
		//alert(<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_filter.getNeedReset());
	</script>
<?php }?>
<?php if (($_smarty_tpl->getVariable('mainlist')->value['rowevnt'])){?>
	<script language="javascript">
		<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_filter.setRowEvnt('<?php echo $_smarty_tpl->getVariable('mainlist')->value['rowevnt'];?>
');
	</script>
<?php }?>
<?php if (($_smarty_tpl->getVariable('list')->value['acc'])){?>
<script language="javascript">
	<?php if (($_smarty_tpl->getVariable('mainlist')->value['show']=='partner')){?>
		$("<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_paymentwrapper").addClass("hide");
	<?php }elseif(($_smarty_tpl->getVariable('mainlist')->value['show']=='payment')){?>
		$("<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_partnerwrapper").addClass("hide");
	<?php }else{ ?>
		$("<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_paymentwrapper").addClass("hide");
		$("<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_partnerwrapper").addClass("hide");
	<?php }?>
</script>
<?php }?>
<?php if (($_smarty_tpl->getVariable('mainlist')->value['onlypayment'])){?>
<script language="javascript">
	<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_filter.selectAcc('payment');
	<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_filter.showOnlyPayment();
</script>
<?php }?>
<?php if (($_smarty_tpl->getVariable('mainlist')->value['defaultpartner'])){?>
	<script language="javascript">
		selectDefaultPartnertype('<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
', "<?php echo $_smarty_tpl->getVariable('mainlist')->value['defaultpartner'];?>
");
	</script>
<?php }?>
<?php if (($_smarty_tpl->getVariable('mainlist')->value['postscript'])){?>
	<script language="javascript">
		eval(<?php echo $_smarty_tpl->getVariable('mainlist')->value['postscript'];?>
);
	</script>
<?php }?>
